package com.jd.org.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jd.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author shaqian
 * @since 2023-02-28
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain{
    private Long adminId;
    private List<ShopAuditLog> auditLogs;

    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="创建时间", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    // 店铺状态：店铺状态：0待审核，1.待激活，2.已激活，3.审核不通过
    @Excel(name="状态", replace = {"待审核_0","待激活_1","不通过_3","已激活_2"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state;
    @Excel(name="地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name="店铺Logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;


}
